package com.syni.mdd.sjb.common.component.mybatis.community.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author lcc
 * @since 2020-07-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class WxPermanentCode implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 企业授权方应用id
     */
    private String corpid;

    /**
     * 应用id
     */
    private String suiteId;

    /**
     * 企业名称
     */
    private String enterpriseName;

    /**
     * 永久授权码
     */
    private String permanentCode;


    private String responseBody;

    /**
     * 创建时间
     */
    private LocalDateTime newTime;


    public static final String ID = "id";

    public static final String CORPID = "corpid";

    public static final String SUITE_ID = "suite_id";

    public static final String RESPONSE_BODY = "response_body";

    public static final String NEW_TIME = "new_time";

    public static final String PERMANENT_CODE = "permanent_code";

}
